//package com.ruoyi.config;
//
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.socket.server.standard.ServerEndpointExporter;
//
///**
// * 开启WebSocket支持
// */
//@ConditionalOnProperty(name = "spring.profiles.active", havingValue = "dev")
//
//@Configuration
//public class WebSocketConfig {
////    @ConditionalOnProperty(name = "spring.profiles.active")
//    @Bean
//    public ServerEndpointExporter serverEndpointExporter() {
//        return new ServerEndpointExporter();
//    }
//}
